<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OsinfoDb: Libosinfo Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Libosinfo Reference Manual">
<link rel="up" href="ch01.html" title="Libosinfo">
<link rel="prev" href="OsinfoDatamap.html" title="OsinfoDatamap">
<link rel="next" href="OsinfoDeployment.html" title="OsinfoDeployment">
<meta name="generator" content="GTK-Doc V1.29 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#OsinfoDb.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#OsinfoDb.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="OsinfoDatamap.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="OsinfoDeployment.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="OsinfoDb"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="OsinfoDb.top_of_page"></a>OsinfoDb</span></h2>
<p>OsinfoDb — Database of all entities</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="OsinfoDb.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="returnvalue">OsinfoDb</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-new" title="osinfo_db_new ()">osinfo_db_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoPlatform.html" title="OsinfoPlatform"><span class="returnvalue">OsinfoPlatform</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-platform" title="osinfo_db_get_platform ()">osinfo_db_get_platform</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="returnvalue">OsinfoDevice</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-device" title="osinfo_db_get_device ()">osinfo_db_get_device</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoInstallScript.html#OsinfoOs"><span class="returnvalue">OsinfoOs</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-os" title="osinfo_db_get_os ()">osinfo_db_get_os</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoDeployment.html" title="OsinfoDeployment"><span class="returnvalue">OsinfoDeployment</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-deployment" title="osinfo_db_get_deployment ()">osinfo_db_get_deployment</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoDatamap.html" title="OsinfoDatamap"><span class="returnvalue">OsinfoDatamap</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-datamap" title="osinfo_db_get_datamap ()">osinfo_db_get_datamap</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoInstallScript.html" title="OsinfoInstallScript"><span class="returnvalue">OsinfoInstallScript</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-install-script" title="osinfo_db_get_install_script ()">osinfo_db_get_install_script</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoDeployment.html" title="OsinfoDeployment"><span class="returnvalue">OsinfoDeployment</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-find-deployment" title="osinfo_db_find_deployment ()">osinfo_db_find_deployment</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoOsList.html" title="OsinfoOsList"><span class="returnvalue">OsinfoOsList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-os-list" title="osinfo_db_get_os_list ()">osinfo_db_get_os_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoPlatformList.html" title="OsinfoPlatformList"><span class="returnvalue">OsinfoPlatformList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-platform-list" title="osinfo_db_get_platform_list ()">osinfo_db_get_platform_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoDeviceList.html" title="OsinfoDeviceList"><span class="returnvalue">OsinfoDeviceList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-device-list" title="osinfo_db_get_device_list ()">osinfo_db_get_device_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoDeploymentList.html" title="OsinfoDeploymentList"><span class="returnvalue">OsinfoDeploymentList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-deployment-list" title="osinfo_db_get_deployment_list ()">osinfo_db_get_deployment_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoInstallScriptList.html" title="OsinfoInstallScriptList"><span class="returnvalue">OsinfoInstallScriptList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-install-script-list" title="osinfo_db_get_install_script_list ()">osinfo_db_get_install_script_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoDatamapList.html" title="OsinfoDatamapList"><span class="returnvalue">OsinfoDatamapList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-get-datamap-list" title="osinfo_db_get_datamap_list ()">osinfo_db_get_datamap_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-add-os" title="osinfo_db_add_os ()">osinfo_db_add_os</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-add-platform" title="osinfo_db_add_platform ()">osinfo_db_add_platform</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-add-device" title="osinfo_db_add_device ()">osinfo_db_add_device</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-add-deployment" title="osinfo_db_add_deployment ()">osinfo_db_add_deployment</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-add-datamap" title="osinfo_db_add_datamap ()">osinfo_db_add_datamap</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-add-install-script" title="osinfo_db_add_install_script ()">osinfo_db_add_install_script</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoInstallScript.html#OsinfoOs"><span class="returnvalue">OsinfoOs</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-guess-os-from-media" title="osinfo_db_guess_os_from_media ()">osinfo_db_guess_os_from_media</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-identify-media" title="osinfo_db_identify_media ()">osinfo_db_identify_media</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoInstallScript.html#OsinfoOs"><span class="returnvalue">OsinfoOs</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-guess-os-from-tree" title="osinfo_db_guess_os_from_tree ()">osinfo_db_guess_os_from_tree</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-unique-values-for-property-in-os" title="osinfo_db_unique_values_for_property_in_os ()">osinfo_db_unique_values_for_property_in_os</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-unique-values-for-property-in-platform" title="osinfo_db_unique_values_for_property_in_platform ()">osinfo_db_unique_values_for_property_in_platform</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-unique-values-for-property-in-device" title="osinfo_db_unique_values_for_property_in_device ()">osinfo_db_unique_values_for_property_in_device</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-unique-values-for-property-in-deployment" title="osinfo_db_unique_values_for_property_in_deployment ()">osinfo_db_unique_values_for_property_in_deployment</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoOsList.html" title="OsinfoOsList"><span class="returnvalue">OsinfoOsList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-unique-values-for-os-relationship" title="osinfo_db_unique_values_for_os_relationship ()">osinfo_db_unique_values_for_os_relationship</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoPlatformList.html" title="OsinfoPlatformList"><span class="returnvalue">OsinfoPlatformList</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDb.html#osinfo-db-unique-values-for-platform-relationship" title="osinfo_db_unique_values_for_platform_relationship ()">osinfo_db_unique_values_for_platform_relationship</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="OsinfoDb.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
    <span class="lineart">╰──</span> OsinfoDb
</pre>
</div>
<div class="refsect1">
<a name="OsinfoDb.description"></a><h2>Description</h2>
<p><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> is a database tracking all entity instances against which
metadata is recorded.</p>
</div>
<div class="refsect1">
<a name="OsinfoDb.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="osinfo-db-new"></a><h3>osinfo_db_new ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="returnvalue">OsinfoDb</span></a> *
osinfo_db_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-new.returns"></a><h4>Returns</h4>
<p>the new database. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-platform"></a><h3>osinfo_db_get_platform ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoPlatform.html" title="OsinfoPlatform"><span class="returnvalue">OsinfoPlatform</span></a> *
osinfo_db_get_platform (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                        <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-platform.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>the unique platform identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-platform.returns"></a><h4>Returns</h4>
<p>the platform, or NULL if none is found. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-device"></a><h3>osinfo_db_get_device ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="returnvalue">OsinfoDevice</span></a> *
osinfo_db_get_device (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                      <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-device.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>the unique device identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-device.returns"></a><h4>Returns</h4>
<p>the device, or NULL if none is found. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-os"></a><h3>osinfo_db_get_os ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoInstallScript.html#OsinfoOs"><span class="returnvalue">OsinfoOs</span></a> *
osinfo_db_get_os (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                  <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-os.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>the unique operating system identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-os.returns"></a><h4>Returns</h4>
<p>the operating system, or NULL if none is found. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-deployment"></a><h3>osinfo_db_get_deployment ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoDeployment.html" title="OsinfoDeployment"><span class="returnvalue">OsinfoDeployment</span></a> *
osinfo_db_get_deployment (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                          <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-deployment.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>the unique operating system identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-deployment.returns"></a><h4>Returns</h4>
<p>the operating system, or NULL if none is found. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-datamap"></a><h3>osinfo_db_get_datamap ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoDatamap.html" title="OsinfoDatamap"><span class="returnvalue">OsinfoDatamap</span></a> *
osinfo_db_get_datamap (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                       <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-datamap.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>the unique operating system identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-datamap.returns"></a><h4>Returns</h4>
<p>the install datamap, or NULL if none is found. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-install-script"></a><h3>osinfo_db_get_install_script ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoInstallScript.html" title="OsinfoInstallScript"><span class="returnvalue">OsinfoInstallScript</span></a> *
osinfo_db_get_install_script (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                              <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-install-script.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>the unique operating system identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-install-script.returns"></a><h4>Returns</h4>
<p>the install script, or NULL if none is found. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-find-deployment"></a><h3>osinfo_db_find_deployment ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoDeployment.html" title="OsinfoDeployment"><span class="returnvalue">OsinfoDeployment</span></a> *
osinfo_db_find_deployment (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                           <em class="parameter"><code><a class="link" href="OsinfoInstallScript.html#OsinfoOs"><span class="type">OsinfoOs</span></a> *os</code></em>,
                           <em class="parameter"><code><a class="link" href="OsinfoPlatform.html" title="OsinfoPlatform"><span class="type">OsinfoPlatform</span></a> *platform</code></em>);</pre>
<p>Find the deployment for <em class="parameter"><code>os</code></em>
 on <em class="parameter"><code>platform</code></em>
, if any.</p>
<div class="refsect3">
<a name="osinfo-db-find-deployment.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>os</p></td>
<td class="parameter_description"><p>the operating system to find</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>platform</p></td>
<td class="parameter_description"><p>the virtualization platform</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-find-deployment.returns"></a><h4>Returns</h4>
<p>the deployment, or NULL. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-os-list"></a><h3>osinfo_db_get_os_list ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoOsList.html" title="OsinfoOsList"><span class="returnvalue">OsinfoOsList</span></a> *
osinfo_db_get_os_list (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-os-list.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-os-list.returns"></a><h4>Returns</h4>
<p>the list of operating systems. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-platform-list"></a><h3>osinfo_db_get_platform_list ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoPlatformList.html" title="OsinfoPlatformList"><span class="returnvalue">OsinfoPlatformList</span></a> *
osinfo_db_get_platform_list (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-platform-list.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-platform-list.returns"></a><h4>Returns</h4>
<p>the list of platforms. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-device-list"></a><h3>osinfo_db_get_device_list ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoDeviceList.html" title="OsinfoDeviceList"><span class="returnvalue">OsinfoDeviceList</span></a> *
osinfo_db_get_device_list (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-device-list.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-device-list.returns"></a><h4>Returns</h4>
<p>the list of devices. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-deployment-list"></a><h3>osinfo_db_get_deployment_list ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoDeploymentList.html" title="OsinfoDeploymentList"><span class="returnvalue">OsinfoDeploymentList</span></a> *
osinfo_db_get_deployment_list (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-deployment-list.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-deployment-list.returns"></a><h4>Returns</h4>
<p>the list of deployments. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-install-script-list"></a><h3>osinfo_db_get_install_script_list ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoInstallScriptList.html" title="OsinfoInstallScriptList"><span class="returnvalue">OsinfoInstallScriptList</span></a> *
osinfo_db_get_install_script_list (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-install-script-list.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-install-script-list.returns"></a><h4>Returns</h4>
<p>the list of install scripts. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-get-datamap-list"></a><h3>osinfo_db_get_datamap_list ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoDatamapList.html" title="OsinfoDatamapList"><span class="returnvalue">OsinfoDatamapList</span></a> *
osinfo_db_get_datamap_list (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-get-datamap-list.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-get-datamap-list.returns"></a><h4>Returns</h4>
<p>the list of install datamaps. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-add-os"></a><h3>osinfo_db_add_os ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
osinfo_db_add_os (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                  <em class="parameter"><code><a class="link" href="OsinfoInstallScript.html#OsinfoOs"><span class="type">OsinfoOs</span></a> *os</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-add-os.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>os</p></td>
<td class="parameter_description"><p>an operating system. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-add-platform"></a><h3>osinfo_db_add_platform ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
osinfo_db_add_platform (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                        <em class="parameter"><code><a class="link" href="OsinfoPlatform.html" title="OsinfoPlatform"><span class="type">OsinfoPlatform</span></a> *platform</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-add-platform.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>platform</p></td>
<td class="parameter_description"><p>an platform. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-add-device"></a><h3>osinfo_db_add_device ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
osinfo_db_add_device (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                      <em class="parameter"><code><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *device</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-add-device.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>device</p></td>
<td class="parameter_description"><p>a device. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-add-deployment"></a><h3>osinfo_db_add_deployment ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
osinfo_db_add_deployment (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                          <em class="parameter"><code><a class="link" href="OsinfoDeployment.html" title="OsinfoDeployment"><span class="type">OsinfoDeployment</span></a> *deployment</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-add-deployment.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>deployment</p></td>
<td class="parameter_description"><p>a deployment. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-add-datamap"></a><h3>osinfo_db_add_datamap ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
osinfo_db_add_datamap (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                       <em class="parameter"><code><a class="link" href="OsinfoDatamap.html" title="OsinfoDatamap"><span class="type">OsinfoDatamap</span></a> *datamap</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-add-datamap.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>datamap</p></td>
<td class="parameter_description"><p>an install datamap. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-add-install-script"></a><h3>osinfo_db_add_install_script ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
osinfo_db_add_install_script (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                              <em class="parameter"><code><a class="link" href="OsinfoInstallScript.html" title="OsinfoInstallScript"><span class="type">OsinfoInstallScript</span></a> *script</code></em>);</pre>
<div class="refsect3">
<a name="osinfo-db-add-install-script.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>script</p></td>
<td class="parameter_description"><p>an install script. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-guess-os-from-media"></a><h3>osinfo_db_guess_os_from_media ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoInstallScript.html#OsinfoOs"><span class="returnvalue">OsinfoOs</span></a> *
osinfo_db_guess_os_from_media (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                               <em class="parameter"><code><a class="link" href="OsinfoInstallScript.html#OsinfoMedia"><span class="type">OsinfoMedia</span></a> *media</code></em>,
                               <em class="parameter"><code><a class="link" href="OsinfoInstallScript.html#OsinfoMedia"><span class="type">OsinfoMedia</span></a> **matched_media</code></em>);</pre>
<div class="warning">
<p><code class="literal">osinfo_db_guess_os_from_media</code> has been deprecated since version 0.2.3 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="OsinfoDb.html#osinfo-db-identify-media" title="osinfo_db_identify_media ()"><code class="function">osinfo_db_identify_media()</code></a> instead.</p>
</div>
<p>Guess operating system given an <a class="link" href="OsinfoInstallScript.html#OsinfoMedia"><span class="type">OsinfoMedia</span></a> object.</p>
<div class="refsect3">
<a name="osinfo-db-guess-os-from-media.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>the installation media</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>matched_media</p></td>
<td class="parameter_description"><p>the matched operating
system media. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-guess-os-from-media.returns"></a><h4>Returns</h4>
<p>the operating system, or NULL if guessing failed. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-identify-media"></a><h3>osinfo_db_identify_media ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
osinfo_db_identify_media (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                          <em class="parameter"><code><a class="link" href="OsinfoInstallScript.html#OsinfoMedia"><span class="type">OsinfoMedia</span></a> *media</code></em>);</pre>
<p>Try to match a newly created <em class="parameter"><code>media</code></em>
 with a media description from <em class="parameter"><code>db</code></em>
.
If found, <em class="parameter"><code>media</code></em>
 will be filled with the corresponding information
stored in <em class="parameter"><code>db</code></em>
. In particular, after a call to <a class="link" href="OsinfoDb.html#osinfo-db-identify-media" title="osinfo_db_identify_media ()"><code class="function">osinfo_db_identify_media()</code></a>, if
the media could be identified, its OsinfoEntify::id and OsinfoMedia::os
properties will be set.</p>
<div class="refsect3">
<a name="osinfo-db-identify-media.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>an <a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>the installation media
data</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-identify-media.returns"></a><h4>Returns</h4>
<p> TRUE if <em class="parameter"><code>media</code></em>
was found in <em class="parameter"><code>db</code></em>
, FALSE otherwise</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-guess-os-from-tree"></a><h3>osinfo_db_guess_os_from_tree ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoInstallScript.html#OsinfoOs"><span class="returnvalue">OsinfoOs</span></a> *
osinfo_db_guess_os_from_tree (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                              <em class="parameter"><code><a class="link" href="OsinfoTree.html" title="OsinfoTree"><span class="type">OsinfoTree</span></a> *tree</code></em>,
                              <em class="parameter"><code><a class="link" href="OsinfoTree.html" title="OsinfoTree"><span class="type">OsinfoTree</span></a> **matched_tree</code></em>);</pre>
<p>Guess operating system given an <a class="link" href="OsinfoTree.html" title="OsinfoTree"><span class="type">OsinfoTree</span></a> object.</p>
<div class="refsect3">
<a name="osinfo-db-guess-os-from-tree.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>tree</p></td>
<td class="parameter_description"><p>the installation tree</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>matched_tree</p></td>
<td class="parameter_description"><p>the matched operating
system tree. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-guess-os-from-tree.returns"></a><h4>Returns</h4>
<p>the operating system, or NULL if guessing failed. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-unique-values-for-property-in-os"></a><h3>osinfo_db_unique_values_for_property_in_os ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
osinfo_db_unique_values_for_property_in_os
                               (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *propName</code></em>);</pre>
<p>Get all unique values for a named property amongst all
operating systems in the database</p>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-property-in-os.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>propName</p></td>
<td class="parameter_description"><p>a property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-property-in-os.returns"></a><h4>Returns</h4>
<p>a list of strings. </p>
<p><span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-unique-values-for-property-in-platform"></a><h3>osinfo_db_unique_values_for_property_in_platform ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
osinfo_db_unique_values_for_property_in_platform
                               (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *propName</code></em>);</pre>
<p>Get all unique values for a named property amongst all
platforms in the database</p>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-property-in-platform.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>propName</p></td>
<td class="parameter_description"><p>a property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-property-in-platform.returns"></a><h4>Returns</h4>
<p>a list of strings. </p>
<p><span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-unique-values-for-property-in-device"></a><h3>osinfo_db_unique_values_for_property_in_device ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
osinfo_db_unique_values_for_property_in_device
                               (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *propName</code></em>);</pre>
<p>Get all unique values for a named property amongst all
devices in the database</p>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-property-in-device.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>propName</p></td>
<td class="parameter_description"><p>a property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-property-in-device.returns"></a><h4>Returns</h4>
<p>a list of strings. </p>
<p><span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-unique-values-for-property-in-deployment"></a><h3>osinfo_db_unique_values_for_property_in_deployment ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
osinfo_db_unique_values_for_property_in_deployment
                               (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *propName</code></em>);</pre>
<p>Get all unique values for a named property amongst all
deployments in the database</p>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-property-in-deployment.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>propName</p></td>
<td class="parameter_description"><p>a property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-property-in-deployment.returns"></a><h4>Returns</h4>
<p>a list of strings. </p>
<p><span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-unique-values-for-os-relationship"></a><h3>osinfo_db_unique_values_for_os_relationship ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoOsList.html" title="OsinfoOsList"><span class="returnvalue">OsinfoOsList</span></a> *
osinfo_db_unique_values_for_os_relationship
                               (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                                <em class="parameter"><code><a class="link" href="OsinfoProduct.html#OsinfoProductRelationship" title="enum OsinfoProductRelationship"><span class="type">OsinfoProductRelationship</span></a> relshp</code></em>);</pre>
<p>Get all operating systems that are the referee
in an operating system relationship.</p>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-os-relationship.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>relshp</p></td>
<td class="parameter_description"><p>the product relationship</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-os-relationship.returns"></a><h4>Returns</h4>
<p>a list of operating systems. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-db-unique-values-for-platform-relationship"></a><h3>osinfo_db_unique_values_for_platform_relationship ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoPlatformList.html" title="OsinfoPlatformList"><span class="returnvalue">OsinfoPlatformList</span></a> *
osinfo_db_unique_values_for_platform_relationship
                               (<em class="parameter"><code><a class="link" href="OsinfoDb.html" title="OsinfoDb"><span class="type">OsinfoDb</span></a> *db</code></em>,
                                <em class="parameter"><code><a class="link" href="OsinfoProduct.html#OsinfoProductRelationship" title="enum OsinfoProductRelationship"><span class="type">OsinfoProductRelationship</span></a> relshp</code></em>);</pre>
<p>Get all platforms that are the referee
in an platform relationship.</p>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-platform-relationship.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>db</p></td>
<td class="parameter_description"><p>the database</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>relshp</p></td>
<td class="parameter_description"><p>the product relationship</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-db-unique-values-for-platform-relationship.returns"></a><h4>Returns</h4>
<p>a list of virtualization platforms. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
</div>
<div class="refsect1">
<a name="OsinfoDb.other_details"></a><h2>Types and Values</h2>
</div>
<div class="refsect1">
<a name="OsinfoDb.see-also"></a><h2>See Also</h2>
<p><a class="link" href="OsinfoList.html" title="OsinfoList"><span class="type">OsinfoList</span></a>, <a class="link" href="OsinfoEntity.html" title="OsinfoEntity"><span class="type">OsinfoEntity</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.29</div>
</body>
</html>